/**
 *
 */
package hichecker.ui.components.custom_table.table_cell_editor;

/**
 *
 */
public class LongNumberEditor extends AbstractTableCellEditor {

	@Override
	protected String getModifiedInput() {
		return comp.getText();
	}

	@Override
	public boolean isValidInput() {
		try {
			Long.parseLong(comp.getText());
			return true;
		} catch (NumberFormatException e) {
			return comp.getText() == null || comp.getText().trim().length() == 0;
		}
	}

}
